package com.ws.lv.mapper;

import com.ws.lv.bean.Save;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SaveMapper {
    List<Save> selectSaves(@Param("user_name") String user_name, @Param("route_name") String route_name);

    Save selectSaveByUserIdAndRouteId(@Param("save_userId") int save_userId, @Param("save_routeId") int save_routeId);

    int insertSave(Save save);

    int deleteSaveById(int saveId);

    List<Save> selectSavesByUserId(int user_id);

    int deleteSaveByUserId (int user_id);

    int deleteSaveByRouteId (int route_id);
}
